import { createApp } from 'vue'
import App from './App.vue'
const app = createApp(App)
import router from './router';
// 1、引入pinia
import { createPinia } from "pinia";
// 2、创建pinia
const pinia = createPinia()
// 3、安装pinia

//引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue' //导入 ElementPlus 组件库中的所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}


app.use(pinia)

app.use(router)

app.use(ElementPlus)

app.mount('#app')
